﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace MvcApplication1.Models
{
    public class Character : IModifiable
    {
        public int Id { get; set; }
        private DateTime _createDate = DateTime.Now;
        public DateTime CreateDate
        {
            get { return _createDate; }
            set { _createDate = value; }
        }

        [StringLength(200)]
        public string FullName { get; set; }
        public string Bio { get; set; }
        public string Gender { get; set; }

        private ICollection<Relationship> _relationships = new List<Relationship>();
        public ICollection<Relationship> Relationships
        {
            get { return _relationships; }
            set { _relationships = value; }
        }

        private ICollection<CharacterTag> _tags = new List<CharacterTag>();
        public ICollection<CharacterTag> Tags
        {
            get { return _tags; }
            set { _tags = value; }
        }
    }
}